package com.lexian.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lexian.entity.Cart;
import com.lexian.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.xml.ws.Action;

/**
 * <p>
 * 购物车 前端控制器
 * </p>
 *
 * @author testjava
 * @since 2021-01-14
 */
@RestController
@RequestMapping("/cart")
public class CartController {
    @Autowired
    private CartService cartService;
    /**
     * 查询用户使用状态的购物车
     * @param cusId
     * @return 使用购物车的编号
     */
    public long getCartIdByCusId(long cusId){
        return cartService.getCartIdByCusId(cusId);
    }
}

